package com.ruoyi.cbs.evaluate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 承包商综合评级对象 cbs_evaluate_rating
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
public class EvaluateRating extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 承包商id */
    @Excel(name = "承包商id")
    private Long contractorId;

    /** 承包商名称 */
    @Excel(name = "承包商名称")
    private String contracterName;

    /** 当前综合得分 */
    @Excel(name = "当前综合得分")
    private Long score;

    /** 当前评级 */
    @Excel(name = "当前评级")
    private String grade;

    /** 评级日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评级日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ratingDate;

    /** 评价 */
    @Excel(name = "评价")
    private String comment;

    /** 删除标志（1代表存在 0代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }

    public void setContracterName(String contracterName) 
    {
        this.contracterName = contracterName;
    }

    public String getContracterName() 
    {
        return contracterName;
    }

    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }

    public void setRatingDate(Date ratingDate) 
    {
        this.ratingDate = ratingDate;
    }

    public Date getRatingDate() 
    {
        return ratingDate;
    }

    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractorId", getContractorId())
            .append("contracterName", getContracterName())
            .append("score", getScore())
            .append("grade", getGrade())
            .append("ratingDate", getRatingDate())
            .append("comment", getComment())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
